package com.xbongbong.pro.statistic.result.pojo.vo;

import com.alibaba.fastjson.JSONObject;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * 指标
 *
 * @author 徐俊杰
 * @version v1.0
 * @date 2020/3/12 9:39
 * @since v1.0
 */
@Getter
@Setter
@ToString
public class IndexVO {
    /**
     * 金额
     */
    private String amount;
    /**
     * 名称
     */
    private String name;
    /**
     * 指标/图表图标
     */
    private String icon;
    /**
     * 颜色，16进制色，如 #FF0000
     */
    private String color;

    /**
     *  单位
     */
    private String unit;


    public IndexVO(String amount, String name, String icon, String color) {
        this.amount = amount;
        this.name = name;
        this.icon = icon;
        this.color = color;
    }

    public IndexVO(String amount, String name, String icon, String color, String unit) {
        this.amount = amount;
        this.name = name;
        this.icon = icon;
        this.color = color;
        this.unit = unit;
    }

    public IndexVO() {
    }
}
